02-Convert to Integer - alternative method.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet

wholenumber= input("Enter a whole number please ")
answer = int(wholenumber) *10 #converts the variable whole number to an integer so you can work with it, and times it by 10
print("Well, if I times your number by 10 I get", answer, "....cool eh?")
                    

Try it yourself